setTrimLength

abstract fun setTrimLength(block: DesignBlock, length: Double)

Set the trim length of the given block or fill. The trim length is the duration of the audio or video clip that should be used for playback. Note: After reaching this value during playback, the trim region will loop. Note: This requires the video or audio clip to be loaded.

Parameters

block

the new trim length, measured in timeline seconds (scaled by playback rate).